<%@ page language="java" contentType="text/html; charset=UTF-8"  
    pageEncoding="UTF-8"%>  
<%@ include file="/includes/taglibs.jsp"%>
<html>  
<head>  
<base target="_self">  
<title>文件上传</title>  
</head>  
<body style="overflow:hidden">

  
<%
 String isUpload=(String)request.getAttribute("isuploaded"); 
 String realImageLocation=(String)request.getAttribute("realImageLocation"); 
 String fileName=(String)request.getAttribute("fileName"); 
 
 String action=(String)request.getAttribute("action"); 
 if(action==null)
 {
	 action = "uploadFile";
 }
%>
    <form id="file_upload_id" name="file_upload_name" action="<%=request.getContextPath() %>/uploadFile.do?action=<%=action %>" method="post" enctype="multipart/form-data">  
        <input type="hidden" name="fileType" value="${fileType}"/>  
        <input type="hidden" name="maxSize" value="${maxSize}"/>
         <input type="file" name="file_upload"/> 
    </form>  
<script> 
function submitform(){
	document.getElementById("file_upload_id").submit();
}

<%if("Y".equals(isUpload)){%>
	//window.returnValue="<%=realImageLocation%>"+","+"<%=fileName%>";
	parent.window.callback("<%=realImageLocation%>","<%=fileName%>");
	//window.close();
<%}%>
</script>
</body>
</html> 